package com.ruoyi.receipt.service.impl;

import com.ruoyi.common.utils.ALSmsSendUtils;
import com.ruoyi.receipt.service.ALSmsSendService;
import org.springframework.stereotype.Service;

/**
 * 手机验证码Service接口
 * 
 * @author chenjian
 * @date 2021-03-17
 */
@Service
public class ALSmsSendServiceImpl implements ALSmsSendService
{

    /**
     * 发送短信注册码
     *
     * @param phone 手机号
     */
    @Override
    public void sendVerCode(String phone) {
        ALSmsSendUtils.sendVerCode(phone);
    }

    /**
     * 发送修改手机号验证码
     *
     * @param phone 手机号
     */
    @Override
    public void sendUpdatePhoneCode(String phone){
        ALSmsSendUtils.sendUpdatePhoneCode(phone);
    }

    /**
     * 检查手机验证码是否正确
     *
     * @author chenjian
     */
    @Override
    public boolean checkVerCode(String phone,String inputVerCode){
        return ALSmsSendUtils.checkVerCode(phone,inputVerCode);
    }

    /**
     * 检查修改手机号验证码是否正确
     *
     * @author chenjian
     */
    @Override
    public boolean checkUpdatePhoneCode(String phone,String inputVerCode){
        return ALSmsSendUtils.checkUpdatePhoneCode(phone,inputVerCode);
    }

}
